from modules.config import Config
from interface.gui import create_interface

def main():
    config = Config()
    interface = create_interface(config)
    try:
        interface.launch(share=True)
    except Exception as e:
        print("程序发生异常：", e)
        import traceback
        traceback.print_exc()

if __name__ == "__main__":
    main()
